// borrowed from prototypejs

Object.extend = function(destination, source) {
	for (var property in source){
		destination[property] = source[property];
	}
	return destination;
};

// By D. Crockford

Object.create = function( o){
	var F = function(){};
	F.prototype=o;
	return new F();
};